import request from '@/utils/request'
import store from '../../store'
// 用户收藏方案
export function favoriteSolution(solutionId, isFavorite) {
	const data = {
		solutionId,
		isFavorite,
		favoriteTime: new Date(),
		userId: store.getters.id
	}
	return request({
		url: '/solution/favorite/favoriteSolution',
		method: 'post',
		data: data
	})
}
export function getFavoriteSolutionList(pageNum) {
	return request({
		'url': '/solution/favorite/favoriteSolutionList',
		headers: {
		  isToken: true
		},
		'method': 'get',
		'params': {
			pageNum,
			pageSize:10,
			userId: store.getters.id
		}
	})
}